export default (router) => router.map({
  '/home': {
    name: 'home',
    component: require('./views/home.vue'),
    auth:true
  },

  // '/tab/:tab/page/:page': {
  //   name: 'tab',
  //   component: require('./views/page'),
  // },
  //
  // '/post/:id': {
  //   name: 'post',
  //   component: require('./views/post'),
  // },

  '/login': {
    name: 'login',
    component: require('./views/login.vue'),
  },
  'register':{
    name: 'register',
    component: require('./views/register.vue'),
  },

  // '/user/:name': {
  //   name: 'user',
  //   component: require('./views/user'),
  // },
  //
  // '/create': {
  //   name: 'create',
  //   component: require('./views/create'),
  //   auth: true,
  // },
  //
  // '/messages': {
  //   name: 'messages',
  //   component: require('./views/message'),
  //   auth: true,
  // },
  '*': {
    component: require('./views/404.vue'),
  },
});
